package com.smiier.skin.net;

import java.io.File;

import android.content.Context;
import cn.o.app.net.NetTask;

import com.smiier.skin.net.ErrorNet.ErrorRequest;
import com.smiier.skin.net.ErrorNet.ErrorResponse;
import com.smiier.skin.net.entity.User;
import com.smiier.skin.util.GlobalSettings;

public class ErrorNet extends NetTask<ErrorRequest, ErrorResponse> {

	public static class ErrorRequest extends ORequest {
		public File file;
	}

	public static class ErrorResponse extends OResponse {
		public User Res;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=SYS.UploadFile";
		mRequestMethod = METHOD_GET;
	}

}
